package com.example.pm.ending.server.mapper;

import com.example.pm.ending.server.pojo.entity.BuildUnitRel;
import com.example.pm.ending.server.pojo.vo.BuildUnitRelStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface BuildUnitRelMapper {

    void insert(BuildUnitRel buildUnitRel);

    int countByBuildIdAndUnitId( Long houseBuildId,Long houseUnitId);

    void update(BuildUnitRel buildUnitRel);

    void deleteById(Long id);

    void deleteByBuildIdAndUnitId(@Param("buildId") Long houseBuildId,@Param("unitId") Long houseUnitId);

    BuildUnitRelStandardVO getStandardByBuildIdAndUnitId(Long houseBuildId,Long houseUnitId);

}
